package com.line.dao;

import com.line.model.entity.ExpressEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * <p>
 * 物流表
 * </p>
 *
 * @author Focus
 * @version 1.0
 * @since 2019-01-27
 */
public interface ExpressRepository extends JpaRepository<ExpressEntity, Long>, JpaSpecificationExecutor<ExpressEntity> {

	ExpressEntity findByPhoneAndExpressNo(String phone, String expressNo);

	List<ExpressEntity> findByPhone(String phone);
}
